package com.bf.xpdd.exception;

/**
 * Base Exception
 * @author Fantastic
 * @version 1.0 2011-03-05
 * @since 1.0
 */
public class BaseException extends Exception{

	/** code */
	private static final long serialVersionUID = -7398219041050125747L;
	
	/** error code */
	private String code;
	
	/** return to client */
	private String message;
	
	/**
	 * constructor
	 * @param message error message
	 */
	public BaseException(String message) {
		this.message = message;
	}
	
	/**
	 * constructor
	 * @param code
	 * @param message
	 */
	public BaseException(String code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
}
